﻿using System;
using System.Collections.Generic;

namespace CKS.Sandbox.DailyDilbert.Proxy
{
    /// <summary>
    /// Data from the Daily Dilbert Feed
    /// </summary>
    [Serializable]
    public class DailyDilbertFeedData
    {
        /// <summary>
        /// Indicates if there is an error reading the feed data.
        /// </summary>
        public bool IsError { get; set; }
        /// <summary>
        /// The Title of the feed.
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// The Error message in case of an error.
        /// </summary>
        public string ErrorMessage { get; set; }
        /// <summary>
        /// The time when the feed was last updated
        /// </summary>
        public DateTimeOffset LastUpdatedDate { get; set; }
        /// <summary>
        /// Feed Item collection
        /// </summary>
        public IList<DailyDilbertFeedItemData> Items { get; set; }
    }
}
